import requests
import json
from utils import *

host = 'http://127.0.0.1:8000'

api = '/api/store/goods/'
api = '/api/store/goods?page=1'

url = host + api

print(url)

# headers = {'application/json'}
resp = requests.get(url)

ret = json.loads(resp.content)

status_code = resp.status_code
show_dc_ls(ret) if status_code == 200 else print(f'状态码错误! status_code: {status_code}')


